/**
 *  Project: CloudstickUtils 
 *  kr.cloudstick.util.crypto-CSCodec.java
 * 	
 *	Copyright 2013 Cloudstick (www.cloudstick.kr)
 *
 *	Written by htkim
 *		2013. 3. 27. first written.
 *
 *	Note:	
 */
package kr.cloudstick.util.crypto;

import org.apache.commons.codec.binary.Base64;

public final class CSCodec {

	private CSCodec() {
		throw new AssertionError();
	}
	
	public static byte[] base64ToByte(final String stringData)
	{
		return Base64.decodeBase64(stringData);
	}
	
	public static String byteToBase64(final byte[] byteData)
	{
		return Base64.encodeBase64String(byteData);
	}
}
